package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AssessmentresultMapper;
import com.ruoyi.system.domain.Assessmentresult;
import com.ruoyi.system.service.IAssessmentresultService;

/**
 * 评价报告Service业务层处理
 * 
 * @author gzhuangwei
 * @date 2022-09-17
 */
@Service
public class AssessmentresultServiceImpl implements IAssessmentresultService 
{
    @Autowired
    private AssessmentresultMapper assessmentresultMapper;

    /**
     * 查询评价报告
     * 
     * @param id 评价报告主键
     * @return 评价报告
     */
    @Override
    public Assessmentresult selectAssessmentresultById(Long id)
    {
        return assessmentresultMapper.selectAssessmentresultById(id);
    }

    /**
     * 查询评价报告列表
     * 
     * @param assessmentresult 评价报告
     * @return 评价报告
     */
    @Override
    public List<Assessmentresult> selectAssessmentresultList(Assessmentresult assessmentresult)
    {
        return assessmentresultMapper.selectAssessmentresultList(assessmentresult);
    }

    /**
     * 新增评价报告
     * 
     * @param assessmentresult 评价报告
     * @return 结果
     */
    @Override
    public int insertAssessmentresult(Assessmentresult assessmentresult)
    {
        return assessmentresultMapper.insertAssessmentresult(assessmentresult);
    }

    /**
     * 修改评价报告
     * 
     * @param assessmentresult 评价报告
     * @return 结果
     */
    @Override
    public int updateAssessmentresult(Assessmentresult assessmentresult)
    {
        return assessmentresultMapper.updateAssessmentresult(assessmentresult);
    }

    /**
     * 批量删除评价报告
     * 
     * @param ids 需要删除的评价报告主键
     * @return 结果
     */
    @Override
    public int deleteAssessmentresultByIds(Long[] ids)
    {
        return assessmentresultMapper.deleteAssessmentresultByIds(ids);
    }

    /**
     * 删除评价报告信息
     * 
     * @param id 评价报告主键
     * @return 结果
     */
    @Override
    public int deleteAssessmentresultById(Long id)
    {
        return assessmentresultMapper.deleteAssessmentresultById(id);
    }
}
